﻿/******************************************************************************
 * Author:      671643387
 * Created:     2016/10/25
 *****************************************************************************/

/// <summary>
/// 登录请求数据
/// </summary>
public class LoginReqInfo
{
    ///////////////////////////////////////////////////////////////////////////
    //>> 变量

    /// <summary>
    /// 平台编号
    /// </summary>
    private string _openid;

    /// <summary>
    /// 玩家名
    /// </summary>
    private string _name;

    /// <summary>
    /// 头像地址
    /// </summary>
    private string _headpic;

    /// <summary>
    /// 性别
    /// </summary>
    private int _sex;


    ///////////////////////////////////////////////////////////////////////////
    //>> 函数

    /// <summary>
    /// 构造函数
    /// </summary>
    public LoginReqInfo()
    {
        _openid = null; _name = null;  _headpic = null; _sex = 0;
    }

    public string openid
    {
        get { return _openid; }
        set { _openid = value; }
    }

    public string name
    {
        get { return _name; }
        set { _name = value; }
    }

    public string headpic
    {
        get { return _headpic; }
        set { _headpic = value; }
    }

    public int sex
    {
        get { return _sex; }
        set { _sex = value; }
    }

    public override string ToString()
    {
        return string.Format("openid:{0}, name:{1}, headpic:{2}, sex:{3}", _openid, _name, _headpic, _sex);
    }
}
